package com.gxa.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Ip白名单表")
public class Ip {

  @ApiModelProperty(name = "id",notes = "Ip白名单id",dataType = "Integer",required = false)
  private Integer id;
  @ApiModelProperty(name = "ip",notes = "ip地址",dataType = "String",required = false)
  private String ip;
  @ApiModelProperty(name = "createTime",notes = "创建时间",dataType = "Timestamp",required = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Timestamp createTime;
  @ApiModelProperty(name = "updateTime",notes = "更新时间",dataType = "Timestamp",required = false)
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Timestamp updateTime;
  @ApiModelProperty(name = "idDeleted",notes = "是否删除",dataType = "Byte",required = false)
  private Byte isDeleted;


}
